<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Bootstrap Select 下拉 - Easy Frame</title>
    <meta name="description" content="Updates and statistics">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!--str:::全局css -->
    <link href="/assets/plugins/global/plugins.bundle.css" rel="stylesheet" type="text/css"/>
    <link href="/assets/css/demo1/style.bundle.css" rel="stylesheet" type="text/css"/>
    <!--end::全局css -->

    <link rel="shortcut icon" href="/assets/media/logos/favicon.ico"/>
</head>
<body class="e-page--loading">
<div class="e-content">
    <div class="row">
        <div class="col">
            <div class="alert alert-light alert-elevate fade show" role="alert">
                <div class="alert-icon"><i class="flaticon-warning e-font-brand"></i></div>
                <div class="alert-text">
                    基于<code>Bootstrap Select</code>插件
                    <a class="e-link e-font-bold" href="https://developer.snapappointments.com/bootstrap-select/examples/" target="_blank">官方文档</a>
                    <a class="e-link e-font-bold" href="https://github.com/snapappointments/bootstrap-select" target="_blank">Github</a>
                </div>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-md-6">
            <form class="e-form">
                <div class="card">
                    <div class="card-head">
                        <div class="card-head-label">
                            <h3 class="card-head-title">
                                基础
                            </h3>
                        </div>
                    </div>
                    <div class="card-body">
                        <form class="e-form">
                            <div class="e-section">
                                <div class="e-section-title">默认</div>
                                <div class="e-section-info">
                                    框架中默认会将<code>.select-picker</code>当做下拉插件初始化</code>
                                </div>
                                <div class="e-section-content">
                                    <div class="form-group row">
                                        <label class="col-form-label col-4">默认：</label>
                                        <div class="col-7">
                                            <select class="form-control select-picker">
                                                <option value="1" selected>option 1</option>
                                                <option value="2">option 2</option>
                                                <option value="3">option 3</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="form-group row">
                                        <label class="col-form-label col-4">分组：</label>
                                        <div class="col-7">
                                            <select class="form-control select-picker">
                                                <optgroup label="分组1">
                                                    <option value="1" selected>option 1-1</option>
                                                    <option value="2">option 1-2</option>
                                                    <option value="3">option 1-3</option>
                                                </optgroup>
                                                <optgroup label="分组2">
                                                    <option value="1">option 2-1</option>
                                                    <option value="2">option 2-2</option>
                                                    <option value="3">option 2-3</option>
                                                </optgroup>
                                            </select>
                                            <span class="form-text text-muted">将<code>option</code>放到<code>optgroup</code>中可实现<code>option</code>分组</span>
                                        </div>
                                    </div>
                                    <div class="form-group row">
                                        <label class="col-form-label col-4">多选：</label>
                                        <div class="col-7">
                                            <select class="form-control select-picker" multiple>
                                                <option value="1" selected>option 1</option>
                                                <option value="2" selected>option 2</option>
                                                <option value="3">option 3</option>
                                            </select>
                                            <span class="form-text text-muted">在<code>select.select-picker</code>上添加<code>[multiple]</code>属性启用多选</span>
                                        </div>
                                    </div>
                                    <div class="e-separator e-separator--dashed"></div>
                                    <div class="e-section-title">搜索</div>
                                    <div class="form-group row">
                                        <label class="col-form-label col-4">搜索：</label>
                                        <div class="col-7">
                                            <select class="form-control select-picker" data-live-search="true" multiple>
                                                <option value="1" selected>option 1</option>
                                                <option value="2">option 2</option>
                                                <option value="3">option 3</option>
                                            </select>
                                            <span class="form-text text-muted">在<code>select.select-picker</code>上添加<code>[data-live-search="true"]</code>属性启用搜索</span>
                                        </div>
                                    </div>
                                    <div class="e-separator e-separator--dashed"></div>
                                    <div class="e-section-title">验证</div>
                                    <div class="form-group row">
                                        <label class="col-form-label col-4">最多选2个：</label>
                                        <div class="col-7">
                                            <select class="form-control select-picker" data-live-search="true" multiple data-max-options="2">
                                                <option value="1" selected>option 1</option>
                                                <option value="2">option 2</option>
                                                <option value="3">option 3</option>
                                            </select>
                                            <span class="form-text text-muted">在<code>select.select-picker</code>上添加<code>[data-max-options="2"]</code>属性设置最大选中数</span>
                                        </div>
                                    </div>
                                    <div class="form-group row">
                                        <label class="col-form-label col-4">最多选2个：</label>
                                        <div class="col-7">
                                            <select class="form-control select-picker">
                                                <optgroup label="分组1" data-max-options="2">
                                                    <option value="1" selected>option 1-1</option>
                                                    <option value="2">option 1-2</option>
                                                    <option value="3">option 1-3</option>
                                                </optgroup>
                                                <optgroup label="分组2" data-max-options="1">
                                                    <option value="1">option 2-1</option>
                                                    <option value="2">option 2-2</option>
                                                    <option value="3">option 2-3</option>
                                                </optgroup>
                                            </select>
                                            <span class="form-text text-muted">在<code>select.select-picker > optgroup</code>上添加<code>[data-max-options="1"]</code>属性设置每个组的最大选中数</span>
                                        </div>
                                    </div>
                                    <div class="e-section-title">分隔线</div>
                                    <div class="form-group row">
                                        <label class="col-form-label col-4">分割线：</label>
                                        <div class="col-7">
                                            <select class="form-control select-picker" data-live-search="true" multiple data-max-options="2">
                                                <option value="1" selected>option 1</option>
                                                <option value="2">option 2</option>
                                                <option data-divider="true"></option>
                                                <option value="3">option 3</option>
                                            </select>
                                            <span class="form-text text-muted">在<code>select.select-picker</code>内添加<code>&lt;option data-divider="true"&gt;&lt;/option&gt;</code>设置分割线</span>
                                        </div>
                                    </div>
                                </div>
                                <div class="e-separator e-separator--dashed"></div>
                                <div class="e-section-title">文本</div>
                                <div class="e-section-content">
                                    <div class="form-group row">
                                        <label class="col-form-label col-4">提示文字：</label>
                                        <div class="col-7">
                                            <select class="form-control select-picker" multiple title="每个分组最多选择2个">
                                                <optgroup label="分组1" data-max-options="2">
                                                    <option value="1">option 1-1</option>
                                                    <option value="2">option 1-2</option>
                                                    <option value="3">option 1-3</option>
                                                </optgroup>
                                                <optgroup label="分组2" data-max-options="2">
                                                    <option value="1">option 2-1</option>
                                                    <option value="2">option 2-2</option>
                                                    <option value="3">option 2-3</option>
                                                </optgroup>
                                            </select>
                                            <span class="form-text text-muted">在<code>select.select-picker</code>上添加<code>[title="每个分组最多选择2个"]</code>属性设置提示文字</span>
                                        </div>
                                    </div>
                                    <div class="form-group row">
                                        <label class="col-form-label col-4">自定义显示文字：</label>
                                        <div class="col-7">
                                            <select class="form-control select-picker">
                                                <option value="1" title="选项 1" selected>option 1</option>
                                                <option value="2" title="选项 2">option 2</option>
                                                <option value="3" title="选项 3">option 3</option>
                                            </select>
                                            <span class="form-text text-muted">在<code>select.select-picker > option</code>上添加<code>[title="选中时提示文字"]</code>属性自定义选中时的文字</span>
                                        </div>
                                    </div>
                                    <div class="form-group row">
                                        <label class="col-form-label col-4">显示选中数量：</label>
                                        <div class="col-7">
                                            <select class="form-control select-picker" multiple data-selected-text-format="count">
                                                <option value="1" title="选项 1" selected>option 1</option>
                                                <option value="2" title="选项 2" selected>option 2</option>
                                                <option value="3" title="选项 3">option 3</option>
                                            </select>
                                            <span class="form-text text-muted">在<code>select.select-picker > option</code>上添加<code>[title="选中时提示文字"]</code>属性设置显示选中数量，一般用于文字比较长的场景</span>
                                        </div>
                                    </div>
                                    <div class="form-group row">
                                        <label class="col-form-label col-4">选中3个后才显示数量：</label>
                                        <div class="col-7">
                                            <select class="form-control select-picker" multiple data-selected-text-format="count > 2">
                                                <option value="1" title="选项 1" selected>option 1</option>
                                                <option value="2" title="选项 2" selected>option 2</option>
                                                <option value="3" title="选项 3">option 3</option>
                                            </select>
                                            <span class="form-text text-muted">在<code>select.select-picker</code>上添加<code>[data-selected-text-format="count > 2"]</code>属性设置当选中多少个后才显示数量</span>
                                        </div>
                                    </div>
                                    <div class="form-group row">
                                        <label class="col-form-label col-4">副文本：</label>
                                        <div class="col-7">
                                            <select class="form-control select-picker">
                                                <option value="1" data-subtext="选项" selected>option 1</option>
                                                <option value="2" data-subtext="选项">option 2</option>
                                                <option value="3" data-subtext="选项">option 3</option>
                                            </select>
                                            <span class="form-text text-muted">在<code>select.select-picker option</code>上添加<code>[data-subtext=""]</code>属性设置副文本</span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </form>
        </div>
        <div class="col-md-6">
            <form class="e-form">
                <div class="card">
                    <div class="card-head">
                        <div class="card-head-label">
                            <h3 class="card-head-title">
                                高级
                            </h3>
                        </div>
                    </div>
                    <div class="card-body">
                        <form class="e-form">
                            <div class="e-section">
                                <div class="e-section-title">图标</div>
                                <div class="e-section-content">
                                    <div class="form-group row">
                                        <label class="col-form-label col-4">Flaticon：</label>
                                        <div class="col-7">
                                            <select class="form-control select-picker" multiple title="使用Flaticon图标">
                                                <option value="1" data-icon="flaticon-email-black-circular-button">option 1</option>
                                                <option value="2" data-icon="flaticon-map">option 2</option>
                                                <option value="3" data-icon="flaticon-alert-off">option 3</option>
                                            </select>
                                            <span class="form-text text-muted">在<code>select.select-picker option</code>上添加<code>[data-icon=""]</code>属性设置图标</span>
                                        </div>
                                    </div>
                                    <div class="form-group row">
                                        <label class="col-form-label col-4">Fontawesome：</label>
                                        <div class="col-7">
                                            <select class="form-control select-picker" multiple title="使用Fontawesome图标">
                                                <option value="1" data-icon="fa fa-ad">option 1</option>
                                                <option value="2" data-icon="fa fa-address-book">option 2</option>
                                                <option value="3" data-icon="fa fa-address-card">option 3</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="form-group row">
                                        <label class="col-form-label col-4">Lineawesome：</label>
                                        <div class="col-7">
                                            <select class="form-control select-picker" multiple title="使用Lineawesome图标">
                                                <option value="1" data-icon="la la-apple">option 1</option>
                                                <option value="2" data-icon="la la-archive">option 2</option>
                                                <option value="3" data-icon="la la-bar-chart">option 3</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="e-separator e-separator--dashed"></div>
                                <div class="e-section-title">徽章</div>
                                <div class="e-section-content">
                                    <div class="form-group row">
                                        <label class="col-form-label col-4">徽章：</label>
                                        <div class="col-7">
                                            <select class="form-control select-picker" multiple>
                                                <option value="1" selected data-content="<span class='badge badge-success badge--inline'>success</span>">success</option>
                                                <option value="2" data-content="<span class='badge badge-info badge--inline'>info</span>">info</option>
                                                <option value="3" data-content="<span class='badge badge-warning badge--inline'>warning</span>">warning</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="e-separator e-separator--dashed"></div>
                                <div class="e-section-title">工具条</div>
                                <div class="e-section-content">
                                    <div class="form-group row">
                                        <label class="col-form-label col-4">全选/取消全选：</label>
                                        <div class="col-7">
                                            <select class="form-control select-picker" multiple data-actions-box="true">
                                                <option value="1" data-icon="la la-apple">option 1</option>
                                                <option value="2" data-icon="la la-archive">option 2</option>
                                                <option value="3" data-icon="la la-bar-chart">option 3</option>
                                            </select>
                                            <span class="form-text text-muted">在<code>select.select-picker</code>上添加<code>[data-actions-box="true"]</code>属性设置启用全选/取消全选</span>
                                        </div>
                                    </div>
                                    <div class="form-group row">
                                        <label class="col-form-label col-4">头部：</label>
                                        <div class="col-7">
                                            <select class="form-control select-picker" multiple data-actions-box="true" data-header="请选择一项">
                                                <option value="1" data-icon="la la-apple">option 1</option>
                                                <option value="2" data-icon="la la-archive">option 2</option>
                                                <option value="3" data-icon="la la-bar-chart">option 3</option>
                                            </select>
                                            <span class="form-text text-muted">在<code>select.select-picker</code>上添加<code>[data-header="请选择一项"]</code>属性设置头部文字</span>
                                        </div>
                                    </div>
                                </div>
                                <div class="e-separator e-separator--dashed"></div>
                                <div class="e-section-title">Disabled</div>
                                <div class="e-section-content">
                                    <div class="form-group row">
                                        <label class="col-form-label col-4">禁用选项：</label>
                                        <div class="col-7">
                                            <select class="form-control select-picker" multiple data-actions-box="true">
                                                <option value="1" data-icon="la la-apple" disabled>option 1</option>
                                                <option value="2" data-icon="la la-archive">option 2</option>
                                                <option value="3" data-icon="la la-bar-chart">option 3</option>
                                            </select>
                                            <span class="form-text text-muted">在<code>select.select-picker option</code>上添加<code>[disabled]</code>属性禁用选项</span>
                                        </div>
                                    </div>
                                    <div class="form-group row">
                                        <label class="col-form-label col-4">禁用组：</label>
                                        <div class="col-7">
                                            <select class="form-control select-picker" multiple data-actions-box="true">
                                                <optgroup label="分组1" data-max-options="2" disabled>
                                                    <option value="1">option 1-1</option>
                                                    <option value="2">option 1-2</option>
                                                    <option value="3">option 1-3</option>
                                                </optgroup>
                                                <optgroup label="分组2" data-max-options="2">
                                                    <option value="1">option 2-1</option>
                                                    <option value="2">option 2-2</option>
                                                    <option value="3">option 2-3</option>
                                                </optgroup>
                                            </select>
                                            <span class="form-text text-muted">在<code>select.select-picker > optgroup</code>上添加<code>[disabled]</code>属性禁用分组</span>
                                        </div>
                                    </div>
                                </div>
                                <div class="e-separator e-separator--dashed"></div>
                                <div class="e-section-title">滚动条</div>
                                <div class="e-section-content">
                                    <div class="form-group row">
                                        <label class="col-form-label col-4">滚动条：</label>
                                        <div class="col-7">
                                            <select class="form-control select-picker" multiple title="超过3个option将启用滚动条" data-size="3">
                                                <optgroup label="分组1" data-max-options="2">
                                                    <option value="1">option 1-1</option>
                                                    <option value="2">option 1-2</option>
                                                    <option value="3">option 1-3</option>
                                                </optgroup>
                                                <optgroup label="分组2" data-max-options="2">
                                                    <option value="1">option 2-1</option>
                                                    <option value="2">option 2-2</option>
                                                    <option value="3">option 2-3</option>
                                                </optgroup>
                                            </select>
                                            <span class="form-text text-muted">在<code>select.select-picker</code>上添加<code>[data-size="3"]</code>属性设置<code>option</code>达到多少个后启用滚动条</span>
                                        </div>
                                    </div>
                                </div>
                                <div class="e-separator e-separator--dashed"></div>
                                <div class="e-section-title">宽度</div>
                                <div class="e-section-content">
                                    <div class="form-group row">
                                        <label class="col-form-label col-4">自动：</label>
                                        <div class="col-7">
                                            <select class="form-control select-picker" multiple title="Auto">
                                                <optgroup label="分组1" data-max-options="2">
                                                    <option value="1">option 1-1</option>
                                                    <option value="2">option 1-2</option>
                                                    <option value="3">option 1-3</option>
                                                </optgroup>
                                                <optgroup label="分组2" data-max-options="2">
                                                    <option value="1">option 2-1</option>
                                                    <option value="2">option 2-2</option>
                                                    <option value="3">option 2-3</option>
                                                </optgroup>
                                            </select>
                                            <span class="form-text text-muted">在<code>select.select-picker</code>上添加<code>[data-width=""]</code>属性设置宽度</span>
                                        </div>
                                    </div>
                                    <div class="form-group row">
                                        <label class="col-form-label col-4">fit：</label>
                                        <div class="col-7">
                                            <select class="form-control select-picker" multiple title="fit" data-width="fit">
                                                <optgroup label="分组1" data-max-options="2">
                                                    <option value="1" selected>option 1-1</option>
                                                    <option value="2">option 1-2</option>
                                                    <option value="3">option 1-3</option>
                                                </optgroup>
                                                <optgroup label="分组2" data-max-options="2">
                                                    <option value="1">option 2-1</option>
                                                    <option value="2">option 2-2</option>
                                                    <option value="3">option 2-3</option>
                                                </optgroup>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="form-group row">
                                        <label class="col-form-label col-4">150px：</label>
                                        <div class="col-7">
                                            <select class="form-control select-picker" multiple title="150px" data-width="150px">
                                                <optgroup label="分组1" data-max-options="2">
                                                    <option value="1">option 1-1</option>
                                                    <option value="2">option 1-2</option>
                                                    <option value="3">option 1-3</option>
                                                </optgroup>
                                                <optgroup label="分组2" data-max-options="2">
                                                    <option value="1">option 2-1</option>
                                                    <option value="2">option 2-2</option>
                                                    <option value="3">option 2-3</option>
                                                </optgroup>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="form-group row">
                                        <label class="col-form-label col-4">50%：</label>
                                        <div class="col-7">
                                            <select class="form-control select-picker" multiple title="50%" data-width="50%">
                                                <optgroup label="分组1" data-max-options="2">
                                                    <option value="1">option 1-1</option>
                                                    <option value="2">option 1-2</option>
                                                    <option value="3">option 1-3</option>
                                                </optgroup>
                                                <optgroup label="分组2" data-max-options="2">
                                                    <option value="1">option 2-1</option>
                                                    <option value="2">option 2-2</option>
                                                    <option value="3">option 2-3</option>
                                                </optgroup>
                                            </select>
                                        </div>
                                    </div>

                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<!--str:: 全局js -->
<script src="/assets/plugins/global/plugins.bundle.js"></script>
<script src="/assets/js/demo1/scripts.bundle.js"></script>
<!--end:: 全局js -->
</body>
</html>